package cn.zhizihua.mapper;

import cn.zhizihua.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhizihua
 * @since 2024-12-18
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    //查询所有部门名称
    @Select("SELECT dept_name from department")
    List<Department> getAllDeptName();
}
